package com.handpay.nocardpay.baselibrary.qualificationinfo.model.bean;

import android.os.Parcel;
import android.os.Parcelable;
import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sxshi on 2017/2/22.
 *         银行支行信息
 */

public class SubBankBean extends BaseResponseBean implements Parcelable{

    /**
     * items : 20
     * list : [{"subBankCode":"105558013039","subBankName":"中国建设银行股份有限公司常德滨湖路支行"},{"subBankCode":"105558013055","subBankName":"中国建设银行股份有限公司常德德山支行"},{"subBankCode":"105558013063","subBankName":"中国建设银行股份有限公司常德鼎城支行"},{"subBankCode":"105558013071","subBankName":"中国建设银行股份有限公司常德洞庭大道支行"},{"subBankCode":"105558013080","subBankName":"中国建设银行股份有限公司常德高山街支行"},{"subBankCode":"105558013098","subBankName":"中国建设银行股份有限公司常德建设路支行"},{"subBankCode":"105558013102","subBankName":"中国建设银行股份有限公司常德柳叶大道支行"},{"subBankCode":"105558013119","subBankName":"中国建设银行股份有限公司常德武陵大道支行"},{"subBankCode":"105558013127","subBankName":"中国建设银行股份有限公司常德桥南支行"},{"subBankCode":"105558013135","subBankName":"中国建设银行股份有限公司常德三闾桥支行"},{"subBankCode":"105558013143","subBankName":"中国建设银行股份有限公司常德青年中路支行"},{"subBankCode":"105558013151","subBankName":"中国建设银行股份有限公司常德人民东路支行"},{"subBankCode":"105558013160","subBankName":"中国建设银行股份有限公司常德人民西路支行"},{"subBankCode":"105558013178","subBankName":"中国建设银行股份有限公司常德朗州路支行"},{"subBankCode":"105558013186","subBankName":"中国建设银行股份有限公司常德市分行（不对外）"},{"subBankCode":"105558013194","subBankName":"中国建设银行股份有限公司常德市分行"},{"subBankCode":"105558013209","subBankName":"中国建设银行股份有限公司常德武陵支行"},{"subBankCode":"105558013330","subBankName":"中国建设银行股份有限公司常德皂果路支行"},{"subBankCode":"105110039313","subBankName":"中国建设银行天津市分行武清支行常德大街分理处"},{"subBankCode":"105558013047","subBankName":"中国建设银行常德大园盘路储蓄所"}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * subBankCode : 105558013039
         * subBankName : 中国建设银行股份有限公司常德滨湖路支行
         */

        private String subBankCode;
        private String subBankName;

        public String getSubBankCode() {
            return subBankCode;
        }

        public void setSubBankCode(String subBankCode) {
            this.subBankCode = subBankCode;
        }

        public String getSubBankName() {
            return subBankName;
        }

        public void setSubBankName(String subBankName) {
            this.subBankName = subBankName;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.subBankCode);
            dest.writeString(this.subBankName);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.subBankCode = in.readString();
            this.subBankName = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.items);
        dest.writeList(this.list);
    }

    public SubBankBean() {
    }

    protected SubBankBean(Parcel in) {
        this.items = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<SubBankBean> CREATOR = new Parcelable.Creator<SubBankBean>() {
        @Override
        public SubBankBean createFromParcel(Parcel source) {
            return new SubBankBean(source);
        }

        @Override
        public SubBankBean[] newArray(int size) {
            return new SubBankBean[size];
        }
    };

    @Override
    public String toString() {
        return "SubBankBean{" +
                "items=" + items +
                ", list=" + list +
                '}';
    }
}
